package cn.javass.dp.strategy.example2;

public class Price {
    public double quote(double goodsPrice, String customerType) {
        if ("普通客户".equals(customerType)) {
            return goodsPrice;
        } else if ("普通客户1".equals(customerType)) {
            return goodsPrice*(1-0.05);
        }else if ("普通客户2".equals(customerType)) {
            return goodsPrice*(1-0.1);
        }
        return 0;
    }
}
